package com.wteam.dragon.system.apps.generator.mapper;

import com.wteam.dragon.system.apps.generator.pojo.dto.TableInfoDto;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author 陈晓辉
 * @Date 2021/5/28 14:57
 */
public interface TableInfoDtoMapper {
    @Select("select table_name ,create_time , engine, table_collation coding, table_comment remark from information_schema.tables " +
            "where table_schema = (select database()) " +
            "and table_name like #{tableName} order by create_time desc")
    List<TableInfoDto> listTables(String tableName);
}